package com.shushan.home.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: OpenExtractVipBean
 * @Desciption: //TODO
 * @author: yichaohua
 * @date: 2018-11-01
 */
public class OpenExtractVipBean extends NetBaseBean {

    public int id;
    public String activity_name;
    public int cost_price;
    public int favorable_price;
    public int subject;
    public String end_time;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        activity_name = jsonObject.optString("activity_name","");
        cost_price = jsonObject.optInt("cost_price",0);
        favorable_price = jsonObject.optInt("favorable_price",0);
        subject = jsonObject.optInt("subject",0);
        end_time = jsonObject.optString("end_time","");
    }
}
